﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using HotelManagement.Class;
using System.Collections;

namespace HotelManagement
{
    public partial class UpdateCheckInGuest : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                ArrayList bookingIdList = BookingAndRoomAvailabilityDBManager.GetAllBookingID();
                ddlUpdateByBookingId.DataSource = bookingIdList;
                ddlUpdateByBookingId.DataBind();
                ddlUpdateByBookingId.SelectedValue = "View All";

                //ArrayList guestIdList = BookingAndRoomAvailabilityDBManager.GetAllGuestID();
                //ddlUpdateByGuestId.DataSource = guestIdList;
                //ddlUpdateByGuestId.DataBind();
                //ddlUpdateByGuestId.SelectedValue = "View All";

                ArrayList roomIdList = BookingAndRoomAvailabilityDBManager.GetAllRoomID();
            }

        }

        protected void btnBack_Click(object sender, EventArgs e)
        {
            Server.Transfer("ManageBookingModule.aspx");
        }

        protected void btnUpdateByBookingID_Click(object sender, EventArgs e)
        {
            int bookingId = Convert.ToInt32(ddlUpdateByBookingId.Text);
            string querystring = "BookingID=" + bookingId;
            Server.Transfer("UpdateBookingAndGuestInfo.aspx?" + querystring);
        }

       

      
    }
}